<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<c:set value="${requestScope.ordersGoodsResponse.data.list }" var="ordersGoodsList"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>订单详情 - 美妆产品销售系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/header"/>
		<div id="mainBody">
			<div class="container">
				<div class="row">
					<%@ include file="/common/include/leftBar.jsp"%>
					<div class="span9">
						<ul class="breadcrumb">
							<li><a href="${rootPath }/main">首页</a><span class="divider">/</span></li>
							<li class="active">订单详情</li>
						</ul>
						<table class="table table-bordered">
							<tbody>
								<tr>
									<th>订单信息</th>
								</tr>
								<tr>
									<td>
										<form class="form-horizontal">
											<div class="control-group">
												<label class="control-label">
													<strong>收货人 </strong>
												</label>
												<div class="controls">
													${one.receName }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>收货人手机: </strong>
												</label>
												<div class="controls">
													${one.recePhone }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>收货人地址 </strong>
												</label>
												<div class="controls">
													${one.receAddress }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>总价格: </strong>
												</label>
												<div class="controls">
													${one.totalPrice }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>折扣: </strong>
												</label>
												<div class="controls">
													${one.discount }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>应付金额: </strong>
												</label>
												<div class="controls">
													${one.dealAmount }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>支付: </strong>
												</label>
												<div class="controls">
													${one.payTypeStr }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>物流: </strong>
												</label>
												<div class="controls">
													${one.status > 3 ? one.logisticsTypeStr : '' }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>运单号: </strong>
												</label>
												<div class="controls">
													${one.status > 1 ? one.logisticsSn : '' }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>状态: </strong>
												</label>
												<div class="controls">
													${one.statusStr }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>备注: </strong>
												</label>
												<div class="controls">
													${one.content }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>注册时间: </strong>
												</label>
												<div class="controls">
													${one.createTime }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>更新时间: </strong>
												</label>
												<div class="controls">
													${one.updateTime }
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">
													<strong>支付时间: </strong>
												</label>
												<div class="controls">
													${one.payTime }
												</div>
											</div>
										</form>
									</td>
								</tr>
							</tbody>
						</table>
						
						<table class="table table-bordered">
							<thead>
								<tr>
									<th>序号</th>
									<th>标题</th>
									<th>价格</th>
									<th>数量</th>
									<th>总价格</th>
									<th>状态</th>
									<th>下单时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${ordersGoodsList }" var="listTemp" varStatus="stat">
									<tr>
										<td>${stat.count }</td>
										<td title="${listTemp.title}">
											<a href="${rootPath }//goodsInfo?id=${listTemp.goodsId}" target="_blank">
												${fn:substring(listTemp.title,0,subStrLen) }
											</a>
										</td>
										<td>${listTemp.price}</td>
										<td>${listTemp.num }</td>
										<td>${listTemp.totalPrice }</td>
										<td>${listTemp.statusStr }</td>
										<td>${listTemp.createTime }</td>
										<td>
											<a target="_blank" href="${rootPath }/head/goods/commentInsert?goodsId=${listTemp.goodsId}" class="btn btn-danger">
												评论
											</a>
										</td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>